package com.dj.ms.configure;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author ZJG
 */
@Data
@Configuration
@PropertySource(value = {"classpath:mq/rocketmq-${spring.profiles.active}.properties"})
public class AliYunMQConfiguration {
    //阿里云AccessKey
    @Value("${aliyun.rocketmq.accessKey}")
    private String accessKey;
    //阿里云SecretKey
    @Value("${aliyun.rocketmq.secretKey}")
    private String secretKey;
    //阿里云 nameSrv地址
    @Value("${aliyun.rocketmq.namesrv_addr}")
    private String namesrv_addr;
}
